# $Id: PKGBUILD 78197 2012-10-17 10:24:19Z allan $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jeff Mickey <jeff@archlinux.org>
# Contributor: Mirko Messer <mirk@chao.ch>

pkgname=ipcheck
pkgver=20121002
pkgrel=1
pkgdesc="A simple python script to register your dynamic IP address using the NIC V2.0 protocol"
arch=(any)
url="http://ipcheck.sourceforge.net/"
license=('GPL')
depends=('python2')
backup=('etc/ipcheck.conf')
source=(ipcheck-$pkgver.py::http://downloads.sourceforge.net/project/ipcheck/ipcheck.py
	ipcheck-$pkgver.conf::http://downloads.sourceforge.net/project/ipcheck/ipcheck.conf)
md5sums=('c09d79f528107142c064a6e49b22ef07'
         '39532a3db7dc018f335219c51a541b96')

build() {
  sed -i -e '1,1d' -e '1,1i#!/usr/bin/python2' $srcdir/ipcheck-$pkgver.py
}

package() {
  install -Dm755 $srcdir/ipcheck-$pkgver.py $pkgdir/usr/bin/ipcheck
  install -Dm644 $srcdir/ipcheck-$pkgver.conf $pkgdir/etc/ipcheck.conf
}
